package com.varian.system.dto;

import com.varian.tool.enums.UserStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author ben
 * @since 2024/7/1
 */
@Data
@Schema(title = "用户数据对象")
public class SysUserDTO {

    @Schema(title = "部门id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;
    @Schema(title = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;
    @Schema(title = "昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    @Schema(title = "用户状态")
    private UserStatusEnum userStatus;
}
